Replace js by coffeescript