Replacing onclicks with addEventListeners in contentScript