Utilities for Javascript plug

Docstring. Just assume that anyplace there isn't a docstring, there should be a docstring. DOCSTRING!