LONDON (AP) Jacksonville's defense came up big in the first half, and quarterback Blake Bortles came through late to rally the Jaguars to the victory.
Seven seconds of defensive excellence gave the Jaguars a big lead they eventually squandered away, but Bortles came through when needed in a 34-31 win over the Buffalo Bills on Sunday at Wembley Stadium.
Bortles threw a 31-yard game-winning touchdown pass to Allen Hurns with 2:16 remaining, after Buffalo safety Corey Graham intercepted a pass and returned it 44 yards to put the Bills ahead in a seesaw game that was streamed live on Yahoo's website.
''To be able to stay calm and to have a big lead and give it up and be able to come back and score to win the game is huge,'' Bortles said. ''I think it speaks to the personality of this team, and it's cool to be a part of.''
Bortles' throw, his second TD pass of the game, came with open space for him to run for a first down. But instead of going on his own, he saw Hurns heading toward the end zone and let it fly.
''What we're seeing in Blake is that he does keep his eyes downfield,'' Jaguars coach Gus Bradley said. ''His eyes are always downfield looking for opportunities.''
The Jaguars (2-5) won their first game in London after losing in each of the past two seasons at Wembley, the home of England's national soccer team. The Bills (3-4) were playing in the British capital for the first time.
EJ Manuel started at quarterback for the Bills for the second straight game because of the absence of the injured Tyrod Taylor, one of the many injuries Buffalo is struggling to overcome.
Manuel's early lapses allowed Jacksonville to take a 27-3 lead, but the backup QB turned things around for a while and led the rally until the Jaguars took over for good in the final minutes.
''It was bad football,'' said Manuel, who is 6-10 as an NFL starter with four straight losses. ''Not playing sound and trying to force balls in that I can't do. Turnovers for scores was very tough.''
Bortles was 13 of 29 for 182 yards, two touchdowns and one interception. The defense was even better, though, scoring two touchdowns in a 7-second span and setting up another for T.J. Yeldon, who finished with 116 yards.
Trailing 3-0, Bortles hit Allen Robinson on a 10-yard touchdown pass. Then the defense stepped up.
On third-and-9, Aaron Colvin forced a fumble from Manuel. Sergio Brown nearly smothered the ball, but Chris Clemons grabbed the loose ball and ran 6 yards into the end zone.
After the kickoff and a touchback, Manuel was again in the pocket but his pass was picked off by Telvin Smith, who ran it in from the 26.
And the defense wasn't done yet. On the fourth play of the next drive, Manuel was again picked off, this time by Paul Posluszny.
The Jaguars' offense didn't disappoint this time, with Yeldon running it in from the 28 to give Jacksonville a 27-3 lead after Jason Myers missed the extra point.
''Anything that could go wrong did go wrong,'' Bills coach Rex Ryan said, ''and we are still able to overcome it to take a lead, and then we blew it.''
The Bills' comeback started when Manuel completed a 16-yard touchdown pass to Robert Woods. That score and another field goal from Dan Carpenter made it 27-13 at the half.
In the fourth quarter, Carpenter kicked a third field goal before Manuel hit Marcus Easley on a 58-yard touchdown pass - only minutes before Graham gave the Bills a 31-27 lead with 5:21 left.
While the Bills were piling up the points, the Jaguars struggled to get the ball moving in the fourth quarter.
''We tried to mix in some run and pass, tried to burn some clock, and it didn't work,'' Bradley said. ''But we tried to stay aggressive.''
Manuel started at quarterback for the second straight game, and for the second straight loss this season. He finished with 298 yards on 24 of 42 passing with two touchdowns and two interceptions.
Ryan said he was sticking by his backup quarterback.
''He knows it wasn't the best time for him, but we kept believing in him,'' Ryan said.
Manuel was starting because Taylor sprained a ligament in his left knee in the 14-13 win over Tennessee on Oct. 11. With a week off after the trip, as usual for teams playing in London, Taylor will have more time to heal before the Bills host the Miami Dolphins on Nov. 8.
The Jaguars, who will again travel to London next season, next play at the New York Jets, also on Nov. 8.
For the Bills, the week off should help heal some of the injuries that have blighted their season, especially to Taylor.
''I've never known a team that needed a bye week so badly,'' Ryan said.
NOTES: The 58-yard TD pass from EJ Manuel to Marcus Easley was Buffalo's longest play of the season ... This was the second of three regular-season NFL games at Wembley this season. The New York Jets beat the Miami Dolphins 27-14 on Oct. 4, and the Detroit Lions will face the Kansas City Chiefs next Sunday ... The attendance was 84,021, the second highest at Wembley after 2009 when the New England Patriots beat the Tampa Bay Buccaneers.
AP NFL website: www.pro32.ap.org and www.twitter.com/AP-NFL