Board Thread:Support Requests - Getting Technical/@comment-3271569-20130613172607/@comment-1158325-20130614072504

Wikicode is parsed into HTML long before JavaScript is run. You'd have to use some HTML with the file (in the caption or in an element next to it or something) in order to pass values to JS like that.