Typo fix: attachEventListener -> addEventListener