const getPages = ($) => {
  return $('.pagination > ul > li > a')
    .map((i, page) => $(page)
      .text())
    .filter((i, page) => !isNaN(page))