Fixed the AJAX call and updated "next" parameters.