Create a JavaScript function called suppressJS()
function suppressJS(){return true;}
Then within the head tags add the following code
window.onerror=suppressJS;
Your complete code will look like this
<script type="text/javascript"> <!-- function suppressJS(){return true;} window.onerror=suppressJS; //--> </script>