js to coffee problem