Url parser for Node.js and the Browser