This page demonstrates the jQuery
SharePoint Web Services library function
SPScriptAudit.
The
SPScriptAudit function spins through a SharePoint site, reporting
on the use of scripting in its pages.
The function is relatively slow and inefficient (you waited a while to see
this) because it's something you would use only occasionally to audit your
script usage.