code: function routeAndCorrectedPathIndexes(routes, pathIndex) {
          for(var n=0; n<routes.length; n++) {
              var pathIndexes = routes[n].pathIndexes
              if(pathIndexes.start <= pathIndex && pathIndex <= pathIndexes.end || routes[n].route.isDefault) {
                  return {routeIndex: n, pathIndex: pathIndexes.start}
              }
          }
          // else
          return {routeIndex: routes.length, pathIndex: pathIndex}
      }
docs: returns an object with the members: routeIndex - the first index of routes that matches the passed pathIndex pathIndex - the path index corrected for where the beggining of the divergence route is