Added AJAX functionality to comment creation.