All I get is this:
An error has occurred in the script on this page
line: 31
char: 5
error: expected identifier, string or number
code: 0
url: http://example.com
It’s difficult to find that line since I have several external and internal scripts.
How can I debug this? (By the way, the scripts have no errors in chrome or firefox or ie8+)
Try debugging it with IE8’s Developer Tools (press F12). You should be able to step through the JS code (from all your scripts) to find out what is wrong with line 31 / char 5.