At Tech Ed 2012 New Zealand I demonstrated a javascript analyser. You can use it to get an output in csv format of all the javascript within the system. It extracts the data from FormXml and outputs where the javascript is called from. e.g.: which library and which function on which form on which control and on what event.
Above is a javascript utilization visualization chart of RIC (our Relationship Information Center add-on). It shows the percentage of javascript used by entity in the entire system.
If you’d like a similar report for your system please contact us.