updated chat.js: unescape HTML stored in messages array