I mean using code from here:

Something like this:
const {script, domReady, div} = markupTags;
return `<canvas id="renderCanvas"></canvas>
<div id="debugPanel" class="debug-info"></div>
<div id="InfoPanel" class="info"></div>
<button id="m">R</button>`+script(domReady(`
SomeF_from_constantsAndFunctionCode();
`))