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

Well, what about telling JSCS that the code is wrapped in a function?