Application JS to coffee