If you run your browser with "tell me about JavaScript errors" turned on (I do because I test my own sites) you will find that many major mainstream web sites have crap code on them quite a lot of the time.
Why their developers don't themselves make use of this exceedingly simple tool is completely beyond me.