Rewrite the AJAX post