function loadScripts(urls, callback) {
		var pending = urls.length,
			errors = 0;

		if (pending === 0) {
			callback();
			return;
		}

		function listener(e) {
			pending--;
			if ( e.type === 'error' ) {
				errors++;
			}
			e.target.removeEventListener("load", listener);
			e.target.removeEventListener("error", listener);
			if ( pending === 0 && errors === 0 && callback ) {
				callback();
			}
		}

		for ( var i = 0; i < urls.length; i++ ) {
			var script = document.createElement("script");
			script.addEventListener("load", listener);
			script.addEventListener("error", listener);
			script.src = sBaseUrl + urls[i];
			document.head.appendChild(script);
		}
	}
IMPORTANT: This is a private module, its API must not be used in production and is
subject to change.

It may be used to experiment with an alternative bootstrap of a UI5 application.

Currently, it does not fully recreate the environment of the regular UI5 bootstrap
(<code>sap-ui-core.js</code>), but only a subset as required by UI5 Controls
(<code>sap.m</code>) or UI5 Web Components.

@private
@experimental