docs: function getDivergenceIndexes(currentPath, newPath, routes) {
          // find where path differs
          var divergenceIndex // the index at which the paths diverge
          for(var n=0; n<currentPath.length; n++) {
              if(currentPath[n] !== newPath[n]) {
                  divergenceIndex = n
                  break;
              }
          }
          if(divergenceIndex === undefined && newPath.length > currentPath.length) {
              divergenceIndex = currentPath.length
          }
  
          if(divergenceIndex === undefined)
              return undefined
  
          return routeAndCorrectedPathIndexes(routes, divergenceIndex)
      }