Added chat.js