Refactored Gruntfile.js file