edit chat.js