convert coffeescript to javascript