CHIP-8 Emulator in JavScript