Standalone location (URL) object for both browser and node.js