fix jsHint errors in branch 2.0.0
Merge pull request #329 from chicoxyzzy/fix_jshint_errors_2.0.0

fix jsHint errors in branch 2.0.0