Knights get revenge over Ayr