The entire point of this exercise is that it is tiny and blindingly fast.
Running it inside a bloated whole-system emulator, in a bloated failure-prone semi-interpreted language, inside a bloated failure-prone app like any modern web browser, is like proposing replacing a bicycle with a shipping container containing an exercise bike, with a VR headset, mounted on the back of a flatbed articulated truck.
Which has a broken gearbox and no tyres and can only scrape screaming and skidding along the road, enveloped in flames and smoke.