some messed up arcs
some cleanup of app.js