(function (w, d) { w.tsUpdateMetaDescription = function () { var existingTitle = document.querySelector('title').innerText; document.querySelector('title').innerText = "***** Rating: 4.5 - 196 Reviews - " + existingTitle; var existingDesc = document.querySelector('meta[name="description"]').getAttribute("content"); document.querySelector('meta[name="description"]').setAttribute("content", "***** Rating: 4.5 - 196 Reviews - " + existingDesc); }; var timestamp = document.createElement("meta"); timestamp.setAttribute("name", "ts-timestamp"); timestamp.setAttribute("content", new Date().toLocaleString()); document.head.appendChild(timestamp); if (d.getElementById("ts-json") === null) { var filter = Array.prototype.filter; var productName = "AWC Loft Conversions Reading"; var title = document.querySelector("title"); if (title === null || title.innerText.match(/^ *$/) !== null) { title = filter.call(d.querySelectorAll('h1'), function (node) { return node.innerText != ""; })[0]; } if (typeof title !== "undefined") { productName = title.innerText; } var json = "[{\"@type\":\"Product\",\"@id\":\"{{url}}#trustist\",\"description\":null,\"logo\":\"https://content.trustist.com/brandlogos/6a425bbb-960d-421a-aa84-14fc093c043d.png\",\"image\":[\"https://content.trustist.com/brandlogos/6a425bbb-960d-421a-aa84-14fc093c043d.png\"],\"name\":\"{{productName}}\",\"alternateName\":null,\"hasMap\":null,\"geo\":null,\"telephone\":null,\"url\":\"{{url}}\",\"address\":null,\"branchOf\":null,\"openingHoursSpecification\":null,\"sameAs\":[\"https://www.trustist.com/local-reviews/Review-awc-loft-conversions-reading-Reviews-23064.html\"],\"@context\":\"http://schema.org\",\"brand\":{\"@type\":\"Organization\",\"@id\":null,\"description\":null,\"logo\":\"https://content.trustist.com/brandlogos/6a425bbb-960d-421a-aa84-14fc093c043d.png\",\"image\":[\"https://content.trustist.com/brandlogos/6a425bbb-960d-421a-aa84-14fc093c043d.png\"],\"name\":\"AWC Loft Conversions\",\"alternateName\":null,\"hasMap\":null,\"geo\":null,\"telephone\":null,\"url\":\"http://www.awcloftconversions.co.uk\",\"address\":null,\"branchOf\":null,\"openingHoursSpecification\":null,\"sameAs\":null},\"aggregateRating\":{\"@type\":\"AggregateRating\",\"ratingValue\":4.5,\"bestRating\":5,\"worstRating\":1,\"reviewCount\":196},\"review\":null,\"mpn\":\"{{url}}\",\"sku\":\"{{url}}\"},{\"@type\":\"LocalBusiness\",\"@id\":\"https://www.trustist.com/local-reviews/Review-awc-loft-conversions-reading-Reviews-23064.html\",\"description\":null,\"logo\":\"https://content.trustist.com/brandlogos/6a425bbb-960d-421a-aa84-14fc093c043d.png\",\"image\":[\"https://content.trustist.com/brandlogos/6a425bbb-960d-421a-aa84-14fc093c043d.png\"],\"name\":\"AWC Loft Conversions\",\"alternateName\":\"AWC Loft Conversions Reading\",\"hasMap\":\"https://maps.google.com/?cid=1881656936562696611\",\"geo\":{\"@type\":\"GeoCoordinates\",\"latitude\":\"51.458150\",\"longitude\":\"-0.977075\"},\"telephone\":\"0118 967 8428\",\"url\":\"http://www.awcloftconversions.co.uk\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"40 Caversham Rd\",\"addressLocality\":\"Reading\",\"addressRegion\":\"England\",\"postalCode\":\"RG1 7EB\",\"addressCountry\":\"GB\"},\"branchOf\":{\"@type\":\"Organization\",\"name\":\"AWC Loft Conversions\",\"sameAs\":\"http://www.awcloftconversions.co.uk\"},\"openingHoursSpecification\":[],\"sameAs\":[\"https://maps.google.com/?cid=1881656936562696611\",\"https://www.yell.com/biz/awc-loft-conversions-ltd-reading-6557189/\",\"https://www.checkatrade.com/AWCLoftConversionsLtd/Reviews.aspx\",\"https://www.facebook.com/awcloftconversions/\"],\"@context\":\"http://schema.org\",\"aggregateRating\":null,\"review\":null,\"paymentAccepted\":null,\"makesOffer\":{\"@type\":\"Offer\",\"@id\":\"#services\",\"itemOffered\":{\"@type\":\"Service\",\"name\":\"Home Builder\",\"url\":\"http://www.awcloftconversions.co.uk\",\"areaServed\":[{\"@type\":\"City\",\"name\":\"Reading\"}]}}}]"; var a = d; var c = a.createElement("script"); c.type = 'application/ld+json'; c.id = 'ts-json'; c.innerText = json .replace(new RegExp("{{url}}", 'g'), w.location.href) .replace("\"{{productName}}\"", JSON.stringify(productName).replace(/[^ -~]+/g, "")); a = a.getElementsByTagName("head")[0]; a.appendChild(c); } var s = document.createElement('script'); s.type = 'text/javascript'; s.defer = true; s.src = 'https://widget.trustist.com/dyRsB59H-UWHMBT8CTwc8A/ratingsummary.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })(window, document);