Is it possible to do this:
myfile.js:
function foo() {
alert(<my-function-name>);
// pops-up "foo"
// or even better: "myfile.js : foo"
}
I’ve got the Dojo and jQuery frameworks in my stack, so if either of those make it easier, they’re available.