Add jshint and fix the warning problems.