check for addEventListener method