        option.textContent = config.label;
        scastieSelect.appendChild(option);
    });

    scastieSelect.addEventListener('change', function () {
        const selectedConfig = JSON.parse(this.value);
        updateFormFields(selectedConfig);
    });

    document.getElementById('scastie-form').addEventListener('submit', function (event) {
        event.preventDefault();
        const user = document.getElementById('user').value;
        const base64UUID = document.getElementById('base64UUID').value