refactors app.js to include roomname