Javascript version of Textorizer