x86 Emulator written to be compiled to asm.js