Recursive AJAX solved.