function makePage(number, text, isActive) {
    return {
      number: number,
      text: text,
      active: isActive
    };
  }
Helper internal service for generating common controller code between the
pager and pagination components