AJAX Chat with NodeJS and MongoDB backend