Correct router.js for pagination.