function resolveURL(sURI, sBase) {
		sBase = pathOnly(sBase ? resolveURL(sBase) : document.baseURI);
		return new URL(sURI, sBase).href;
	}
Resolve a given URL, either against the base URL of the current document or against a given base URL.

If no base URL is given, the URL will be resolved relative to the baseURI of the current document.
If a base URL is given, that base will first be resolved relative to the document's baseURI,
then the URL will be resolved relative to the resolved base.

Search parameters or a hash of the chosen base will be ignored.

@param {string} sURI Relative or absolute URL that should be resolved
@param {string} [sBase=document.baseURI] Base URL relative to which the URL should be resolved
@returns {string} Resolved URL