The question is quite unclear — please see my comment to it.
However, I hope my explanations on how to "show" any function can help you. Functions are
first-class citizen in JavaScript, they are objects with all properties of all other objects, but of special "function" type. All objects can be dumped, represented as string. For example:
Create some function object:
var f = function() { return x + 1; }
Instead of calling it, you can show it:
alert(f);
Why it works? Because the function object is implicitly represented as string. You can do it directly, too:
var s = f.toString();
or even like this:
var s = '' + f;
I hope you got the idea.
—SA