Firefox is my main browser and under the Tools menu there's an option for Error Console (Safari has this as well as most browsers do). I also use the Console^2 add-on, which makes it slightly more powerful. That's all I used here, but I also use the Web Developer Toolbar add-on frequently when helping on this type of problem as well as Firebug.