clean up assets, rewrite app.js