Last modified: 2011-09-05 00:41:34 UTC
http://commons.wikimedia.org/w/index.php?title=MediaWiki:Stockphoto.js&action=raw&ctype=text/javascript etc Is because mw.util.expandUrl() uses wgProto. I'll fix that tomorrow.
Turns out to be a local JS issue, discussing with Krinkle.
Yeah, importScriptUri is a plain legacy function in core. On Commons it's overwritten (yay for the ability in javascript to redefine a function :-) ) to do something with mw.loader.load and a local function called 'mw.util.expandUrl'