The problem is when the page first loads the elements of javascript appear but after infinite scroll triggers the next page, the javascript don't work
my javascript looks like:
<script>
var urlo = encodeURIComponent('<?php the_permalink() ?>');
document.write('<a target="_blank" rel="nofollow" href="http://mysite.com/?report=' + urlo + '"></a>');
</script>
any help?