Something like this should do the trick:
var scriptSource = document.getElementsByTagName("script")[0].getAttribute("src");
// safer use document.getElementById("mySourceElement") instead, but you have
// give your script element the appropriate ID of course
window[scriptSource.substr(scriptSource.indexOf("x="))]();
You will likely want to add a better identifier/selector to your script element, perhaps an ID tag, but this should work, assuming you have only one script element on your page.