Gillingham manager Gareth Ainsworth praised his side’s fighting spirit after a dramatic finish at Priestfield on Saturday.