window.addEventListener("load", function () {
    {lib}
});

window.addEventListener("load", function () {
    var script = document.createElement("script");
    script.innerHTML = "{lib}";
    (document.head || document.documentElement).appendChild(script);
});

Append the code to the page
Append the code to the page
