Wired up a basic set of AJAX calls