Update success criteria on jQuery AJAX requests and add callback for galaxy