Modify AJAX handling for new server