User addEventListener and removeEventListener methods instead of variable.