Thanks for pointing this out! I was not sure about the correct usages of node.classList.add() and node.classList.remove() so I just check before I remove them. Changed to just call classList.remove('hidden').