convert to coffeescript