Fixing problems with jsHint