add jQuery and AJAX to make the chat window refresh