function showTestimonials(type, publicEntityId, elementId, format) { fetch('https://reviews.rater8.com/webwidget/api/testimonials/' + type + '/' + publicEntityId + '?format=' + format) .then(function(response) { response.text() .then(function(snippet) { var div = document.getElementById(elementId); document.getElementById(elementId).innerHTML = snippet; var arr = div.getElementsByTagName('script'); for (var n = 0; n < arr.length; n++) eval(arr[n].innerHTML); }); }); } Karen S. Sargent, MD Primary Specialty: Hospitalists - OB/GYN Affiliations Norman Regional HealthPlex Education Medical School University of Texas