ms', location.href);
        const checkboxStates = {};
        tbody.querySelectorAll('input[type="checkbox"][name]').forEach(checkbox => {
            checkboxStates[checkbox.name] = checkbox.checked;
        });
        fetch(url, {cache: 'no-cache'}).then(r => r.json()).then(data => {
            const existingIds = Array.from(tbody.querySelectorAll('tr')).map(tr => tr.dataset['id']);
            const fetchedIds = [];

            for (const [key, value] of Object.entries(data)) {
                const