6502 Emulator in JavaScript