[frontend] Change to jshint and fix warnings