Share your code.
path module. It's more light weight than the one provided by browserify, and provides a few more method for dealing paths in browsers.
npm install path-br
Get the path portion of a url.
Dirname of the current html document.