fix some jshint errors
release v1.2.0