code: function pathOnly(href) {
  		var p = href.search(/[?#]/);
  		return p < 0 ? href : href.slice(0, p);
  	}
docs: /*
  Helper function that removes any query and/or hash parts from the given URL.
  
  @param {string} href URL to remove query and hash from
  @returns {string}