Javascript Nintendo emulator