Modified ajax abort code