converted app files from js to coffee