Utilities for Javascript plug

Here you go: https://github.com/erikrose/parsimonious/issues/44