config Gruntfile and fix code

- add jshint rule
- fix code by follow jshint