Initial attempt to get round origin server ajax issues.