AJAX architecture function