JavaScript based x86 emulator