/* remove the pagination element from previous chunk of events */ $('.pagination').remove(); $('#events_list_wrapper').html('\n