Add functions/types for XPath support.

This should extend `js.Object` as well.