code: function() {
  			// remove any query string
  			var cleaned = this.clean(),
  				// get the last /
  				last = cleaned.lastIndexOf('/'),
  			    // if there is a last /, get everything up to that point
  				dir = (last != -1) ? cleaned.substring(0, last) : '';
  			// make sure we aren't left with just https/ or file:/
  			return /^(https?:\/|file:\/)$/.test(dir) ? cleaned : dir;
  		}
docs: Returns everything before the last /