ScriptDoc is a tool that extracts documentation from JavaScript files and packages it into XML files that can be consumed by documentation building tools such as Sandcastle. For details please see http://weblogs.asp.net/bleroy/archive/2007/06/27/scriptdoc-1-0-available.aspx.
I will blog more details on how to document Javascript using Sandcastle at http://blogs.msdn.com/sandcastle. Also with ScriptDoc release we have published the reflecition schema (reflection.xsd) of Sandcastle at http://www.codeplex.com/scriptdoc/SourceControl/FileView.aspx?itemId=102696&changeSetId=7167
Anand..