First of all, install
Firebug[
^] on your Firefox browser. When that is installed, there is a script tab where you can find all your Javascript codes. There's a Step Into and Step Over function and you can even set breakpoints on your scripts. It's a useful tool.