Fixed a bunch of jshint errors