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

(btw, this change was prompted because `jscs` belives this is invalid syntax of having the `return` inside the `catch` and completely aborts execution)