Neatened JS
Fixed toggle state on resize