ajax request for new messages is working