Use textContent as innerText causes issues on IE