Split chat.js file.