syntax errors in chatroom.js fixed.