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

"Ugly" is the reason I added that check, and the fact that the codebase barely had any trailing commas