code: function determineBaseURL(url) {
  
  	var baseURL;
  
  	// Check if url is set
  	if (url) {
  
  		// Remove whitespace
  		baseURL = url.trim();
  
  		baseURL = correctHttpAndHttps(baseURL);
  		baseURL = correctQuestionMarkAndAnd(baseURL);
  		baseURL = removeParameters(baseURL);
  
  	} else {
  		// Throw error (no url)
  		throw new Error('The url parameter is not set.');
  	}
  
  	return baseURL;
  }
docs: Corrects all mistakes in a URL.
  
  @param {string}
  url URL with mistakes.
  @returns {string} URL without mistakes.