I am trying to work out how to find which javascript functions might be causing me problems and what is actually needed in the page.

I have downloaded a template that contains a ridiculous amount of script links.
I am trying to cut out any references that I am not actually using.

I am also trying to work out a faster way to find out which .js file contains the function that that are causing errors.

Can Firebug do this?

Any tips?

Lee