Fixed innerText/textContent js bug