Jorgen Strand Larsen stepped off the bench to fire in twice in a late three-minute spell as the Hammers struggled to cope in a stirring finish.