Finish AJAX for editing threads, and replies