chat.js update