The jQuery appended query string is a result of jQuery's cache busting for ajax calls. To disable this, use the following:
$.ajax({
url: '/some-url',
cache: true,
success: function(r) {
$('#html-container').html(r); // Contains: <script src="some-file.js"></script>
}
});
cache: true
being the important part.