minor style changes

* Use "single var pattern" to avoid hoisting (http://schalk-neethling.com/2011/07/javascript-patterns-the-single-var-pattern/)

* don't execute "use strict" globally (http://www.nczonline.net/blog/2012/03/13/its-time-to-start-using-javascript-strict-mode/)