refactored Gruntfile.coffee code