js to coffee fix