Helper functions - initiates prototype, sending chat messages, changing rooms - chat.js