Cowboys react to last-minute win