Thanks, the key here for me was creating the script as an asset (config.js), not a Script.