Add jshint and fix code style and warning