No popup ads should pretend to be Windows system errors and they certainly shouldn't be launching visual basic scripts if they have anything besides harmful intentions.
There is no popup ad from my side. There is a JavaScript from the counter to get some stats. This counter is used on millions of webpages. Seems nobody has any problems with that except you. Disable JavaScript or block popups and you will be fine.
If your Windows crashes of this script its more a fault of your system.