COMPLETE method for AJAX.