docs: function (parentWeb, title, url, template, inheritPermissions) {
  		return $.Deferred(function (dfd) {
  			var ctx = SP.ClientContext.get_current();
  			parentWeb = parentWeb || ctx.get_web();
  			var wci = new SP.WebCreationInformation();
  			wci.set_webTemplate(template);
  			wci.set_title(title);
  			wci.set_url(url);
  			wci.set_language(1033);
  			wci.set_useSamePermissionsAsParentSite(inheritPermissions);
  			parentWeb.get_webs().add(wci);
  			parentWeb.update();
  			ctx.load(parentWeb);
  			ctx.executeQueryAsync(function () {
  				dfd.resolve((parentWeb.get_serverRelativeUrl() + "/" + url).replace(/\/\/*/g, "/"));
  			}, function onError(sender, args) {
  				dfd.reject("Request failed " + args.get_message() + "\n" + args.get_stackTrace());
  			});
  		}).promise();
  	}