Implement method to get text content in DOM tree

Based on jQuery's implementation.
https://github.com/jquery/jquery/blob/bcca4f0/external/sizzle/dist/sizzle.js#L915

This is actually pretty fast, and should be efficient enough.
Use rendered HTML for word count