code: function(path) {
  
  		// If the path is empty
  		if (!path) {
  			return window.location;
  		}
  
  		// Chrome and FireFox support new URL() to extract URL objects
  		else if (window.URL && URL instanceof Function && URL.length !== 0) {
  			return new URL(path, window.location);
  		}
  
  		// Ugly shim, it works!
  		else {
  			var a = document.createElement('a');
  			a.href = path;
  			return a.cloneNode(false);
  		}
  	}
docs: Returns a URL instance