Falkirk fought back from two goals down to secure a crucial point against William Hill Championship title rivals Ayr United.