add jshint with grunt task and fix jshint errors

add jshint with grunt task to check javascript files.