Sure you can run a full operating system in Javascript, how about DOS/Windows 3.1 ?:
They both also rely on emulating an x86 system. I think what might be interesting is something that creates an in browser process model, possibly POSIX compliant. To which you could target applications, critically I think they'd need network access.