There’s no @import-ish function/method in Javascript, but you can simply append a script to the <head>
tag like so:
var newScript = document.createElement('script');
newScript.type="text/javascript";
newScript.src="https://stackoverflow.com/path/to/js/file";
document.getElementsByTagName('head')[0].appendChild(newScript);
Or like Edgar mentioned right before me you can use jQuery.