chat.js file added