added close-prompt to app.js; minor cleanup