Move JSHint testing to Grunt.
Adjust the code for my styling, and fix the JSHint errors as per my conventions.