Added the AJAX sample code.