I would recommend trying out the same page in IE8, if you haven't done so already. If the error doesn't happen, try switching IE8 to Compatibility View.
If you do get the error to occur, then the built-in Developer Tools are very good at finding exactly where the problems in the Javascript occur.