How do you add an eventListener to a function