      })
                .then(response => response.json())
                .then(data => alert(data.message))
                .catch(error => alert('Error: ' + error));
            }
        }

        async function updateInitialDonuts() {
            const initialDonuts = document.getElementById('initialDonuts').value;
            try {
                const response = await fetch('/update_initial_donuts', {
                    method: 'POST',
                    headers: {
                        'Conte