Add the grunt tasks, and improves the code to pass in the jshint