Add AJAX support to the controller.