Javascript is loading so many chats

hello this is chatbro loader basicly i try to make it day-night mode compatable for my website,but it loads 2 chats on page 1 white 1 black chat when i switch day/night mode it even loads more i just wanna refresh the current code to make not load any more chats i want 1 chat block! i load chatbro.php using php include tag btw idk if tis the issiue.. here s the code

<script id="chatBroEmbedCode">
    function ChatbroLoader(chats, async) {
        async = !1 !== async;
        var params = {
                embedChatsParameters: chats instanceof Array ? chats : [chats],
                lang: navigator.language || navigator.userLanguage,
                needLoadCode: 'undefined' == typeof Chatbro,
                embedParamsVersion: localStorage.embedParamsVersion,
                chatbroScriptVersion: localStorage.chatbroScriptVersion
            },
            xhr = new XMLHttpRequest;
        xhr.withCredentials = !0;
        xhr.onload = function() {
            eval(xhr.responseText);
        };
        xhr.onerror = function() {
            console.error('Chatbro loading error')
        };
        xhr.open('GET', '//www.chatbro.com/embed.js?' +
            btoa(unescape(encodeURIComponent(JSON.stringify(params)))), async);
        xhr.send();
    }

    // Function to get the chat header background color for night mode
    function getChatHeaderBackgroundColor() {
        var body = document.querySelector('body');
        if (body && body.getAttribute('data-style') === 'dark-layout') {
            return '#7367f0'; // Replace with your desired dark mode color
        } else {
            return '#ffffff'; // Default day mode color
        }
    }

    // Function to get the chat body background color for night mode
    function getChatBodyBackgroundColor() {
        var body = document.querySelector('body');
        if (body && body.getAttribute('data-style') === 'dark-layout') {
            return '#1F2937'; // Replace with your desired dark mode body color
        } else {
            return '#ffffff'; // Default day mode color
        }
    }

    // Function to get the chat input background color for night mode
    function getChatInputBackgroundColor() {
        var body = document.querySelector('body');
        if (body && body.getAttribute('data-style') === 'dark-layout') {
            return '#1F2937'; // Replace with your desired dark mode input color
        } else {
            return '#ffffff'; // Default day mode color
        }
    }

    // Function to reload the Chatbro widget with the correct colors
    function reloadChatbroWidget() {
        var chatContainer = document.getElementById('chatbroContainer');
        if (chatContainer) {
            chatContainer.innerHTML = ''; // Clear the existing widget
        }

        ChatbroLoader({
            encodedChatId: '<?= $encodedChatId ?>',
            siteDomain: '<?= $siteDomain ?>',
            chatHeaderBackgroundColor: getChatHeaderBackgroundColor(),
            chatBodyBackgroundColor: getChatBodyBackgroundColor(),
            chatInputBackgroundColor: getChatInputBackgroundColor(),
            showChatShadow: 'true',
            siteUserExternalId: '<?= $siteUserExternalId ?>',
            siteUserFullName: '<?= $siteUserFullName ?>',
            siteUserAvatarUrl: '<?= $siteUserAvatarUrl ?>',
            siteUserProfileUrl: '<?= $siteUserProfileUrl ?>',
            siteUserFullNameColor: '<?= $siteUserFullNameColor ?>',
            permissions: <?= $permissionsDisplay ?>,
            signature: '<?= md5($siteDomain . '' . $siteUserExternalId . '' . $siteUserFullName . '' . $siteUserAvatarUrl . '' . $siteUserProfileUrl . '' . $siteUserFullNameColor . '' . implode('', $permissions) . '' . $secretKey) ?>'
        });
    }

    // Set up a MutationObserver to watch for changes to the data-style attribute
    var observer = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            if (mutation.attributeName === 'data-style') {
                reloadChatbroWidget();
            }
        });
    });

    // Start observing the body element for attribute changes
    var body = document.querySelector('body');
    if (body) {
        observer.observe(body, {
            attributes: true // Configure it to listen for attribute changes
        });
    }

    // Initial load of the Chatbro widget
    reloadChatbroWidget();
</script>


<?php }
} ?>

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật