docs: function(path){
          path = (path || '')
                .replace(PROTOCOL_RX, '/')
                .replace(ORIGIN_RX, '/')        // but cut off origin
                .replace(SEARCH_HASH_RX, '');   // cut off query search and hash
  
          // use link element as path resolver
          var result = [];
          var parts = path.split('/');             // split
  
          // process path parts
          for (var i = 0; i < parts.length; i++)
          {
            if (parts[i] == '..')
            {
              if (result.length > 1 || result[0])
                result.pop();
            }
            else
            {
              if ((parts[i] || !i) && parts[i] != '.')
                result.push(parts[i]);
            }
          }
  
          return result.join('/') ||
                 (path[0] === '/' ? '/' : '');
        }