Add jshint and make it part of 'npm test'
Fix other JSHint errors in lib/compiler.js