Javascript utilities for working with text.