Example of how to use JavaScript Callbacks with AJAX