IMDB rating plugin not working with ajax <p>I have a page <code>movies.jsp</code> that is called through ajax from the page <code>home.jsp</code>. <code>movies.jsp</code> contains the code for the IMDB rating plugin (<a href="http://www.imdb.com/plugins?titleId=tt1623205&amp;ref_=tt_plg_rt" rel="nofollow">link</a>) :</p> <pre><code>&lt;span class="imdbRatingPlugin" data-user="ur17960624" data-title="&lt;%=request.getParameter("movieId") %&gt;" data-style="p4"&gt; &lt;a href="http://www.imdb.com/title/&lt;%=request.getParameter("movieId") %&gt;/?ref_=plg_rt_1"&gt; &lt;img src="http://g-ecx.images-amazon.com/images/G/01/imdb/plugins/rating/images/imdb_31x14.png" alt="Oz the Great and Powerful (2013) on IMDb" /&gt; &lt;/a&gt; &lt;/span&gt; &lt;script&gt;(function(d,s,id){var js,stags=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.src="http://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js";stags.parentNode.insertBefore(js,stags);})(document,'script','imdb-rating-api');&lt;/script&gt; </code></pre> <p>My ajax request is called like this :</p> <pre><code>$(document).on('click', 'imdb-button', function(){ $('content').load('movies.jsp&amp;movieId='+imdbmovieId'); }); </code></pre> <p>The problem is that the request works fine the first time, but clicking on other movies with other movieIds returns just the IMDB logo and no rating. I suspect there's a problem with script in the plugin. I tried enclosing the script in a jquery function, and firing that function as a callback to the <code>load</code> everytime but that doesnt work. And ideas?</p>