function parseURL(url) {
      var origin = ORIGIN_MATCHER.exec(url) || {};

      var anchor = document.createElement("a");
      anchor.href = url;