load script file using js code example
Example 1: javascript dynamicly include another js file
var script = document.createElement('script');
script.src = "https://www.examplesite/myscript.js";
document.head.appendChild(script);
Example 2: html load js file
<script src="myscripts.js"></script>