Paul Quinn's late strike from close range made it 2-1 and six successive league wins for the Dons at the start of a season for the first time, taking them two points clear of the champions at the top of the table with a game in hand against Hamilton on Tuesday.
Going into the game, the Welshman said: “Going out on loan is probably something that I needed a couple of years ago, but it has been massive for me.
“I have said to the manager that I am thankful as it was maybe a bit of a gamble to bring up a rookie goalkeeper who was young and had not really played many first-team games.
“So I am thankful to Aberdeen for taking a bit of a punt and I am trying to pay them back by performing on the pitch.
“Hopefully I will carry on doing well."