[frontend] Fix jshint warnings.