working on chat AJAX functionality not working at the moment