Zach Hemming made a couple of smart saves from Ollie Turton and Luke Garbutt, while Dylan Duffy and Lee Bonis had half chances for the Spireites in the first 45 in what was a scrappy game played on a scruffy surface.
Ryan Graydon missed a huge chance for the hosts when he smacked the crossbar from six-yards out just before the hour, while Daniel Udoh hit the side-netting when through on goal later on as the hosts were on top in the second-half.
Graydon had two more chances, first being denied by a superb challenge from Sil Swinkels, before the striker hooked narrowly wide with 15 minutes remaining.
Kelly Nmai raced through late on but Sam Curtis managed to get back and make a last-ditch tackle and that proved important as Curtis’ cross down the other end was turned in by Cooper in the 93rd minute to send the Spireites bench and travelling fans wild.
Here are our player ratings from the game...

1. Zach Hemming 8
His superb reaction save from Turton's close-range header kept it goalless on the half-hour mark and he did well to hold Garbutt's powerful free-kick before half-time when it could easily have squirmed under him. Had to parry one away in the second 45, too. Photo: Tina Jenner

2. Sam Curtis 8
Solid. Strong in the air and in the tackle. Made a fantastic last-ditch tackle on Nmai late on and then created the winner with a bursting run and cross. Photo: Brian Eyre

3. Chey Dunkley 7
Back in the starting line-up after a month out injured and he wore the captain's armband. Marshalled the back-line with great leadership, winning his headers and making a couple of key tackles in the second 45. Mistakes crept in, as did tiredness probably, but Udoh, Graydon and Nmai couldn't make him pay. Photo: Submitted

4. Sil Swinkels 8
Stood up to the big physical test, winning plenty of headers and clearing his lines well, taking no chances on a difficult surface. Made a terrific recovery block to deny Graydon what looked like being a certain goal. Hardly put a foot wrong. Really strong performance. Photo: Submitted

