html/js Project design question - .js file as an argument

I'm working on a project to display placemarkers using Google Maps for several trips I've taken.
There is a utility program that generates a list of the placemarkers in a .js file.
For example LocationsAndNames.js contains:
The list file is referenced in the html file with this statement:
The problem I'm having is how to have one html file be able to read a selected .js file vs a hardcode one in the source.

If the html file were like a program that could run from a commandline like this:
theHtmlFile theListForTrip1.js
and have the arg from the commandline replace the file referenced by the src= statement in the html.

Then I could create shortcuts for all the different trip .js files.

My current solution is to have a folder for each trip. The folder contains the html file and the LocationsAndNames.js file for the placemarkers for the trip. The problem (its small but annoying) is when the html file is updated, all the html files in the trip folders need to be replaced with the new version.

Sorry, I have no idea what a JSON file is. What is the advantage of putting the data in a JSON file vs a js file?
How does an html file chose which file to get its data from?
The files are local, no server is involved.

That looks like what I want. What is the JS to get the parameters following the ?
How would that URL be coded in a shortcut? When I tried the following as Target in a shortcut I get an error message: the path is not valid
D:\Norms\Javascript\GeoLocation\GoogleMapsTesting\Testing\DropPlacemarkersOneByOneVs.html?ListNames.js

No server-side includes, correct?

Correct. There is no server. Only an html file and some .js files on my PC's disk.

How would that URL be coded in a shortcut? When I tried the following as Target in a shortcut I get an error message: the path is not valid
D:\Norms\Javascript\GeoLocation\GoogleMapsTesting\Testing\DropPlacemarkersOneByOneVs.html?ListNames.js

That error message was from Win10 after I had changed the target and pressed the Apply button for the Properties of the shortcut.
I have since found a value for a short cut that works:
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" file:///D:/Norms/Javascript/ReadFile.html?somedata

Now the problem is how to load the somedata.js file and execute its contents to set the value of the vars defined in it.

My advice would be to load jQuery and use its $.getJSON method as the easiest approach to suck in a JSON file with the data.

BUT, and it's a big but, you're going to run into trouble using the file:// protocol. You can't use Ajax without HTTP.

Do you not have an HTTP server running on your machine (Apache? NPM server? Tomcat? Anything?)

If you stick with the file protocol, you'll need to go the "add a <script> tag" approach which is a bit more work and has browser-specific weirdnesses. Again, jQuery helps even out the playing field here. If I recall correctly, when you create the script tag via jQuery, and attach it to the DOM, it makes sure it gets executed correctly. You'll need to do some research, my experience with this is over a decade old.