    }

        // Setup download button functionality
        function setupDownloadButtons() {
            document.getElementById('downloadProvince').addEventListener('click', () => {
                downloadJSON(provincesData, 'province.json');
            });
            
            document.getElementById('downloadWard').addEventListener('click', () => {
                downloadJSON(wardsData, 'ward.json');
            });
        }

        // Download JSON file
        function downloadJSON(data, fi