Added generateBootstrapPagination function