Takes a set of items and paginates them. jQuery paginate method takes the number of items per page as an argument.