Rewrite to Coffeescript.