fix a typo and change the innerText to textContent