title: Yelp 5 star reviews badge to open in new window
body: <p>I can't figure out how to add the target="_blank" attribute to the 5 star rating badge.</p>
  
  <p>This is what I've inserted into webpage...coming from yelp.  I added the last line to the script to try and add attribute but it wont accept.  I can, however get it to accept on the div before as well as the img after just not on the anchor tag.  </p>
  
  <pre><code>&lt;div class="localsocialyelpreviews"&gt;&lt;div id="yelp-biz-badge-fsc-N6ciVLIYpasN2FWN3Nxy9Q"&gt;Gina's Pizza &amp; Pastaria&lt;/div&gt;&lt;script type="text/javascript"&gt;
  !function(doc, id){
    var js;
    var scriptElement = doc.getElementsByTagName("script")[0];
    if (!doc.getElementById(id)) {
      js = doc.createElement("script");
      js.id = id;
      js.src = "//dyn.yelpcdn.com/biz_badge_js/fsc/N6ciVLIYpasN2FWN3Nxy9Q.js";
      scriptElement.parentNode.insertBefore(js, scriptElement);
    }
  } (document, "yelp-biz-badge-script-fsc-N6ciVLIYpasN2FWN3Nxy9Q");
  $("div#yelp-biz-badge-fsc-N6ciVLIYpasN2FWN3Nxy9Q &gt; a").attr("target","_blank");&lt;/script&gt;&lt;/div&gt;
  </code></pre>
  
  <p>This is what ends up happening.  NO TARGET ATTRIBUTE :/</p>
  
  <pre><code>&lt;div class="localsocialyelpreviews"&gt;
  &lt;div id="yelp-biz-badge-fsc-N6ciVLIYpasN2FWN3Nxy9Q"&gt;&lt;a href="http://www.yelp.com/biz/ginas-pizza-and-pastaria-corona-del-mar"&gt;&lt;img width="125" height="55" src="http://dyn.yelpcdn.com/extimg/fsc/N6ciVLIYpasN2FWN3Nxy9Q.png" alt="Gina's Pizza &amp;amp; Pastaria"&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;p&gt;&lt;script type="text/javascript"&gt;
  !function(doc, id){
    var js;
    var scriptElement = doc.getElementsByTagName("script")[0];
    if (!doc.getElementById(id)) {
      js = doc.createElement("script");
      js.id = id;
      js.src = "//dyn.yelpcdn.com/biz_badge_js/fsc/N6ciVLIYpasN2FWN3Nxy9Q.js";
      scriptElement.parentNode.insertBefore(js, scriptElement);
    }
  } (document, "yelp-biz-badge-script-fsc-N6ciVLIYpasN2FWN3Nxy9Q");
  $("div#yelp-biz-badge-fsc-N6ciVLIYpasN2FWN3Nxy9Q &amp;gt; a").attr("target","_blank");&lt;/script&gt;&lt;/p&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I appreciate any insight.. I've tried this many different ways and searched for the solution to this in yelp and stackoverflow but cannot find the answer.  Thanks</p>