How to avoid this script error in IE8?

How to avoid this script error in IE8?

Each time I apply and remove a filter(clicking checkbox) on a my page, IE shows an alert prompting me if I want to, "stop running script," or not.

Check my attached file for this error?

How to stop this error in IE8?