replace js with coffeescript