Utilities for Javascript plug

With an unobvious name like "condense", this module could use a docstring. Or a more informative-to-outsiders name.