Improved organization of lobby.js and room.js, added more comments.