code: function (serverRelativeUrl/*string*/) {
  			var dfd = $.Deferred();
  
  			folderExists(serverRelativeUrl).done(function (folder) {
  				if (folder == false) {
  
  					var parentFolders = pathSteps(serverRelativeUrl);
  					var parentFolderPath = parentFolders[1];
  					var bits = serverRelativeUrl.split("/");
  					var name = bits[bits.length - 1];
  					ensureFolder(parentFolderPath).done(function () /*parentSpFolder*/ {
  						createFolder(name, parentFolderPath).done(function (folder) {
  							dfd.resolve(folder);
  						});
  					});
  				} else {
  					dfd.resolve(folder);
  				}
  			});
  			return dfd.promise();
  		}
docs: returns folder (creating it and its path if necessary)
  @param {string} serverRelativeUrl