Add preventDefault() on click event

If source was copied directly, then page is refreshed. Changed to prevent default event.