You should only be adding the listener once. Your Bubble WF is running your script (which adds an event listener) everytime your “Do When” event triggers.
Add the listener once (ie run the script once) in a Page load event. Note that if you are using any “Navigate to current page” the page load event triggers too. If that’s the case use a boolean state to ensure that the Run JS action runs only once.