Bind event listener to the correct DOM element in outbrain test