code: function create_pager()
    {
      $pager.empty();
      $pager.append('<span>'+ total +' total </span>');
      if (total > pagesize) {
        $pager.append(make_page(0, total));
        var pages = Math.floor(total / pagesize) ;
        var n = Math.max(1, page - 5);
        if (n != 1)
          $pager.append('...');
        var b = Math.min(page + 7, pages);
        for (var i = n; i < b; i++)
          $pager.append(make_page(i, total));
        if (b != pages) {
          $pager.append('...');
        }
          $pager.append(make_page(pages, total));
  
      }
  
    }
docs: /* pager