added chat.js -mike