updated app.js and added prettyPrint