Update www/js/lib/chat.js