e.addEventListener is not a function