Modify chat.js