pass jqXHR to notify function