Update chat.js