Fixing jsHint errors