fix jshint global directive
rename script.js to main.js
make jshint happy, hoist toggleMenu
don't use .html() where only .text() is needed