Add jshint, fix linting errors.