update AJAX code for reviews