Flickr Badges Open New Window jQuery way

I recently added a Flickr Badge to a site and really loved everything about it except that there was no way to have it open the photos in a new window when they were clicked
Flickr badge looked like the following
– Username

<div id="flickr_badge_wrapper">
<script type="text/javascript" src=""></script></div>

– Group

<div id="flickr_badge_wrapper">
<script type="text/javascript" src=""></script>

The following script would loop back through all of the links within the div id “flickr_badge_wrapper” and change their “target” property to “_blank”. Add it to footer.php before

jQuery("#flickr_badge_wrapper a").attr("target","_blank");