Ah, this is an interesting approach. Does JITing over to JS introduce problems with concurrency support though, given the lack of threads in the JS runtime?
Worker on the client side:
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers...
Server-side/nodejs: https://nodejs.org/api/worker_threads.html#worker_threads_wo...