From the .js file you need to transfer the {% include '_template.html' %} template to the html-page inside <div id="some_id"></div> .
The problem is that when pasting through $('#some_id').html("{% include '_template.html' %}"); instead of the contents of _template.html, inside the div is the text "{% include '_template.html'%}"