A chip8 emulator in JavaScript