Learning JavaScript/Canvas by recreating Dragon Warrior (NES)