ajax keeps looping as long as there's a "next" url