Use textContent instead of innerText when possible

Fixes issue #2
Merge pull request #5 from elad661/issue2

Use textContent instead of innerText when possible