      async function updateCurrentDonuts() {
            const currentDonuts = document.getElementById('currentDonuts').value;
            try {
                const response = await fetch('/update_current_donuts', {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json',
                    },
                    body: JSON.stringify({ currentDonuts: parseInt(currentDonuts) })
                });
                
                if (!r