Use jshint instead of gjslint

Add jshint configuration, configure npm to run jshint in "pretest".

Fix existing issues to make jshint pass.