Rewrite tasks in coffeescript