move js to coffee