Fixing a bunch of jshint errors/warnings.