var script = document.createElement("script"); script.setAttribute("type", "text/javascript"); script.setAttribute("src", "https://www.k12insight.com/Lets-Talk/js/KnowledgeBase.js?key=3"); document.getElementsByTagName("head")[0].appendChild(script); var script2 = document.createElement("script"); script2.setAttribute("type", "text/javascript"); script2.setAttribute("src","https://www.k12insight.com/Lets-Talk/js/lt_controllerKB.js?k=4"); document.getElementsByTagName("head")[0].appendChild(script2);