code: function(baseURI) {
        var hash = baseURI.indexOf("#");
        if (hash>=0) {
          baseURI = baseURI.substring(0,hash);
        }
        if (options && options.baseURIMap) {
          baseURI = options.baseURIMap(baseURI);
        }
        return baseURI;
      }
docs: Fix for Firefox that includes the hash in the base URI