Refactor grunt serve
Add jshint and fix some jshint error