Added AJAX functionality to app and changed some callback expectations