Referencing other js scripts

Hello

Is there a way I can reference my own/third party js scripts in index.html? I know how to reference them. What I am asking is there a way to do it such that it is not wiped out every time builder is run? While there are code components for python and js, there are non for the html. Ideas?

thank you

OS (e.g. Win10): mac sierra
PsychoPy version (e.g. 1.84.x): 2020.2.3
Standard Standalone? (y/n) If not then what?: Built from scratch

I know you can inject code into the HTML file using document in JS, but I think that would happen on load, so isn’t useful for importing other JS files. I’m sure there must be a JS equivalent of going import myFile.py in Python but my knowledge of JS is very limited… I’ve changed the tag for this post to Online experiments so that the JS developers see it, they’ll be able to help more :slight_smile: