Create advanced-pagination.js