converted app to coffeescript