Hi @charlie
Your code is completely overriding the $args array and is destroying the paged
attribute. You need to keep this attribute for the AJAX to know when to stop.
Perhaps you could look at the $args array, and only edit what you need to instead of overriding it?
Thanks
E