fix js clonePagination