Added inline documentation to the app.js