Using the Mozilla example pattern I have successfully managed to get (javascript) script1 to (i) dynamically import a second (javascript) script called script2 from a URL;