upating comments in chat.js