Refactoring, RequireJS, Grunt and r.js compiling