Added joinRoom function to chat_server.js