Updated AJAX example