(Refactoring) CoffeeScript refactored