Add jsHint and fix hinting errors.