chat-html - fixing invalid json