minor app.js cleanup