Utilities for Javascript plug

Docstring. I don't know what this does.