docs: function calculateRange(range) {
          range = range || pageLoadRange;
          var currentIndex = layoutState.page - 1,
              low = currentIndex - range,
              high = currentIndex + range;
          return util.constrainRange(low, high, numPages - 1);
      }