refine pagination.js & find and fixed some pagination bug & waterfull is an issue