Add non-node wrapper so code works in a browser

Hi goto100,

This pull request has just some wrapper code so that `xpath.js` can be loaded in a browser and referenced by a global `xpath` var.