alter chat.js