calculate max page count
calculate item count in page
calculate page number of an item
refactoring => change pageIndex(item) to pageIndex(index)
fix bug => item index out of left range
Merge branch 'pagination_helper'
add test into all-tests.html