I agree the Custom Container is the way to go.. It may be easier to just paste in your code as-is (instead of modifying it for the libloader function.)
Of course, remove the HTML part (the "script" begin and end) so only the JS part is in the template.
Sample code to paste in the Tealium Custom Container tag:
(function(a){var d=document,c=d.createElement("script");c.async=!0,c.defer=!0,c.src=a,d.getElementsByTagName("head")[0].appendChild(c)})((iatDev=(window.location.href.indexOf("iatDev=1")>-1||document.cookie.indexOf("iatDev=1")>-1),"//"+(window.location.protocol=="http:"&&!iatDev?"h":"")+"j.flxpxl.com/111111.js?r="+Math.random()*1e16+"&m=992&a=111111"+(iatDev?"&d=1":"")))
... View more