Added grunt support and fixed jshint warnings