Changed from onclick to addEventListener. Also restructured tutorial