convert coffeescript to js