Switched innerText to textContent for wider compatibility.