chip8 emulator for JS.