Converted to the AJAX response convention of content, code, redirect