Replace jQuery-based XPath calculation with native one from dom-text-mapper.