added ajax to do a get request from the chatroom path.