const setActive = el => { [...el.parentElement.children].forEach(sib => sib.classList.remove('active')) el.classList.add('active') }