Update text.js
Merge pull request #1788 from asturur/Some-text-goodies

Some text goodies