Allow output to be returned for AJAX requests