If all you need in js/wasm is the functional layer of the language, that could be easy.
If you want to add processes, that could be very hard.
If you also want the supervisors, that's difficult but probably not has much as adding Erlang style processes.