fix jshint errors

The PR correct some jshint errors.