Is it possible to pass a variable to a linked .js file? I tried this:
No, you can't pass parameters like that and have the script read them in.
Technically you could grab them from the tag, but that would be a real mess.
Could you just output a script block before you include the file?