change js to coffeescript