added chat.js