This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
not sure if it would work, but you might be able to give the script tag an id and use document.getElementById("foo") and read the src and see if it gives you the info you need. Not positive it will work.