Hot on the heels of the javascript 80386 emulator, I found this javascript MIPS syscall emulator, jsmips.
What is cool about this one, is that commands are downloaded on demand. Â And it supports more browsers, like Internet Explorer (well modern ones, IE 5.5sp2 didn’t work).
Vi works, but you’ll need to reset the terminal afterwards. Â At least with this on demand filesystem it’d make it easier to add new binaries…
It’s amazing how far the world of javascript has come, but at the same time, it’s scary how precarious it is perched on browsers where stuff only seems to work at the moment and on select browsers.  But then that’s the way things seem to go.