transfer js to coffee