code: function absoluteURI(uri, base) {
      if (uri.substr(0, 2) == './')
        uri = uri.substr(2);
  
      // absolute urls are left in tact
      if (uri.match(absUrlRegEx) || uri.match(protocolRegEx))
        return uri;
      
      var baseParts = base.split('/');
      var uriParts = uri.split('/');
      
      baseParts.pop();
      
      while (curPart = uriParts.shift())
        if (curPart == '..')
          baseParts.pop();
        else
          baseParts.push(curPart);
      
      return baseParts.join('/');
    }
docs: given a relative URI, calculate the absolute URI