How to call a specific library file inside the div
Attaching a library via the #attached tag will add it to the header (or bottom of the page if that's the settings). It does not get added into the "content" area. So, wrapping it in a &lt;div&gt; is not applicable.

If you are using JS to generate some content that needs to be placed on the page, then it needs to be written to find some selector and insert the content.  E.g.

jQuery('#my-dynamic-content').html("My new div content");


Then just add the &lt;div id="my-dynamic-content"&gt;&lt;/div&gt; to your template/content as needed.