add jshint grunt task
fix some jshint warnings