Text.js: Remove DOM, more chaining

This removes all the DOM references and, when possible, has functions return "this" for more chaining.