move js into app.coffee