Ошибка в JS
// Scroll down the chat window when on the messages page
//if(window.location.search.indexOf('a=messages') > -1 || window.location.pathname.indexOf('/messages/') > -1) {
jQuery(".chat-container").scrollTop(jQuery(".chat-container")[0].scrollHeight);
//}