Add Ajax functions to the app.

This is gonna be cool.