Modify server to accept AJAX