javascript end of pagination reading for testing