refactoring, coffeescripting