Fixing end convos in chat.js