Update public/js/chat.js