Prevent default action in addListeners function

This is to stop the fragment identifier from being added to window.location.href.