A browser version of nodejs path/url module.