If this is a Web application, Javascript code is normally called on the client side, from HTML page, not from the server side. If your settings are different, please explain it — there is such thing as the
server-side Javascript, see
http://en.wikipedia.org/wiki/Server-side_JavaScript[
^].
If you still did not get the answer you hoped for, please properly tag your question and explain your problem more exactly.
—SA