Fixing bug with firefox with innerText vs textContent