Add some extra style checks to jshint and fix them in the files

Come to think of it, all this stuff makes this part a lot longer...