innerText is the "old Internet Explorer" way of doing it.  Try textContent instead. Ideally you should use elem.textContent