Convert tasks js to coffeescript