Add jshint and fix its warnings