Added everything in chat.js to an anonymous function
Added room change functionality
Changing rooms via the window.location.hash attribute