Chaining pagination.js