I’m seeing this in the console when clicking one of the pins on your map:
Uncaught ReferenceError: loc is not defined
Which may be the error that’s preventing everything from working.
At any rate, passing a variable into
getElementById is definitely valid, it’s kinda tough to guess what all’s going wrong. Do you have console logs before/after you can share?