Utilities for Javascript plug

I'll likely change this to walk_keys like in the clang plugin