I have been using Firebug, a Firefox add-on, to help debug my JavaScript for a few months. It also allows you to debug your Ajax calls as well as your CSS. I recently ran across a video introduction to Firebug that may be instructional to newbies like me.

Check it out!