d ellipsis if needed
                if (endPage < totalPages) {
                    paginationContainer.appendChild(createPaginationButton('...', null, false, true));
                }

                // Add next button
                if (currentPage < totalPages) {
                    const nextButton = createPaginationButton('›', () => {
                        currentPage++;
                        displayCurrentPage();
                        updatePagination();
                        window.scrol