Database backed chatroom that polls the server for new messages with AJAX update logic