type === 'rendered-html') {
        updateHTMLDisplay(event.data.html);
      }
    });

    // Run button event
    document.getElementById('runButton').addEventListener('click', runCode);

    // Initialize
    populateSamples();

    // Auto-run first sample when editor is ready
    const checkEditor = setInterval(() => {
      if (editor) {
        clearInterval(checkEditor);
        runCode();
      }
    }, 100);
  </script>
</body>

<script src="./juris.js"></script>

</html>