Rewrite with CoffeeScript