Parse URL in node using the URL module and in the browser using the DOM.