convert all the js to coffee!!!