Try embedding an ns_return in a tcl portion of an adp page..
cheers,
Torben
ns_return 200 "application/x-javascript" noIdeaAboutVarName
ns_set put [ad_conn outputheaders] "content-type" "application/x-javascript; charset=utf-8"