;
        const update = document.getElementById('update').value;

        const existingEmbedded = document.querySelector("#form-container > div.scastie.embedded");
        if (existingEmbedded) {
            existingEmbedded.remove();
        }

        loadScastie(user, base64UUID, update);
    });

    const initialConfig = scastieConfigs[0];
    updateFormFields(initialConfig);
    loadScastie(initialConfig.user, initialConfig.base64UUID, initialConfig.update);
</script>

</body>
</html>