ai-log.php updates. AJAX almost ready