Merge pull request #507 from narisipalli/master

Added a innerText shim for Firefox compatibility and updated the tests.