index.html

<!-- Insert this line in your HTML. -->
<script src="https://embed.runkit.com"
         id="my-element"></script>

<!-- anywhere else on your page -->
<div id="my-element">
    console.log("hello world");
</div>