This is a WIP experiemnt to create a custom element that extends the HTMLScriptElement. Script specified by this element will execute in a web worker.
<script is="worker-script" type="worker">
function sum(a, b) {
return a + b;
}
console.log('Sum = ', sum(3, 4));
</script>
or
<script type="worker" is="worker-script" src="./multiply.js"></script>