quickly converted all js to coffee