Got rid of classList.toggle() with second argument for compatibility with Safari.