code: function parseHref(href) {
    var match = str(href).match(/([^#]*)(#.*)/);
    if (!match) return { path:href };
    return { path:match[1], fragment:match[2] };
  }
docs: decompose href into {path: fragment:} by looking for #