Adds NPM package settings.
Adds xpath.js implementation and tests.