Updated .jshintrc. Fixed a bunch of global leaks