Fixed example code that finds text nodes

Implemented as a simple jQuery plugin.