some minor app.js bugfixes