See my reply to http://www.vbforums.com/showthread.p...=1#post4326329 for tips which might help. Also, the web browser development tools are a great help in debugging javascript, allowing you to set breakpoints on the code and see javascript errors in the script console.

Google Chrome has built-in "Developer Tools" accessible from the settings menu, as does Safari. Firebug has built-in tools and also the great Firebug extension. Opera has the built-in Dragonfly tools similar to Chrome's developer tools.