The attached javascript simply reacquires that you give it a css selector for the kind of item you want to paginate. In the example paragraph tags are paginated. Another argument suppies the number of items to show at a time.