Put that in the <head>
or before the <body>
tag ends for extra speed. Edit the src for jquery,though it's always better to use a online cdn like below:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('.fb-comments').attr("data-href", document.URL);
});
</script>