https://bellard.org/jslinux/
https://bellard.org/jslinux/tech.html
...
http://minimal.linux-bg.org/emulator/
...
http://asmjs.org/spec/latest/#syntax
https://emscripten.org/docs/getting_started/Tutorial.html#running-emscripten
https://emscripten.org/docs/getting_started/Tutorial.html#generating-html
note on the "note": you can load a file, at least any text, using a hidden iframe... :)
reuse it by changing the src attribute... get the text at the onload event...
if is javascript use eval to load the code... :)
... http://node-os.com