Add Ajax functions.