Add jshint and set all of the quicktests to strict mode.

Fix many improper implicit global vars, and clean up code, and add many semicolons.
I assume we are not doing a huge refactor of the quicktests yet, but if so, variable should not be named xy