Removes `noscript` tag.
Adds default properties.
Removes unnecessary code from toggleMenu event.