Refactor for coffeescript & grunt workflow