     if (content.chatname) {
                    const name = document.createElement('span');
                    name.className = 'username';
                    name.innerHTML = content.chatname;
                    header.appendChild(name);
                }

                // Badges
                if (content.chatbadges && Array.isArray(content.chatbadges)) {
                    const badges = document.createElement('div');
                    badges.className = 'badges';
                  