final edit of app.js for installation.html