diagramed app in app.js