Data pagination logic in JavaScript