WASM can not run JavaScript unfortunately.
WASM can run a javascript interpreter or compiler. if isolation is the goal, that may even make sense.