added chatmessages.js