Writing the previous submission in a more coffeescript way