Added AJAX functionality for leaving comments