added to chatroom.js