got rid of duplicate code in app.js
commenting clean up