Added support for grunt, fixed jshint errors