Add support for Firefox

- Use textContent instead of innerText when the latter is not supported.
Merge pull request #3 from santigimeno/firefox_support

Add support for Firefox