src = iconUrl;
                            iconImg.alt = "Icon";
                            iconImg.classList.add('channel-icon');

                            
                            iconImg.onerror = function() {
                                this.onerror = null; 
                                this.src = defaultIconUrl;
                            };

                            channelP.appendChild(iconImg);
                            channelP.appendChild(document.createTextNode(channel.name))