Fix jshint errors to make the code not so super-ugly.