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

Putting functions in objects also invalidates JSON, and we do that, too.