Rewrite with CoffeScript