Fix Ajax functions across site.