Chatroom built in Firebase using JS