JavaScript adaptation of Spritz's text streaming technique.