added beforeSend event to the Response object