code: function renderNumber(next, text, claz, withClick) {
                      return m('li', {
                          'class': itemClass + ' ' + (!withClick ? claz : ''),
                          style: 'cursor:pointer;',
                          onclick: withClick ? function (e) {
                              e.preventDefault();
                              pagination.goToPage(next);
                          } : {}
                      }, [
                          m('a', text)
                      ]);
                  }
docs: :( super ugly code for pagination