convert js to coffeescript