Removed the redundant isTextNode function.
Merge pull request #2 from jchristian/master

A little cleanup