AJAX.php - Better Command Chain