fixed typo in chat.js