fix js to coffee