added generic version of add/removeEventListener
advanced dep versions