CHIP-8 emulator implemented with HTML5 canvas