Verifies that the parameter passed to "selectPage" is with range (1 - o.pages)
adds helper methods to get total pages and get current page