Update chat-frontend.js