cleanup of app.js