In windows and Visual Studio you can see JSAnalyse: http://jsanalyse.codeplex.com/
I have not tried, but from the description, it analyzes JavaScript files and creates a dependency tree of different files based on static links between them.
Project
JSAnalyse - JavaScript . JavaScript, .
JavaScript . (, JQuery, Knockout ..) , JavaScript . , Visual Studio 2010 IntelliSense. , . . JSAnalyse . JavaScript, . XML Visual Studio 2010. JSAnalyse Visual Studio Layer Diagram JavaScript. Gated Check-in , JavaScript .