use a sample of page number links for large collections

Large collections will have a large number of page links. The browser slows noticeably when inserting the large page links collection into the DOM.
use innerHTML and value instead of jQuery .html and .val