Logout button is now working on lobby and room pages.

I had to copy code in both lobby.js and room.js, which is not idea. There must be a better way, but going with this for now.