Refactoring using Grunt tasks