Well javascript are pretty secure and they might not contain virus unless you program them to act as a virus. And if you are talking about the ads displayed by various companies on your site, They do not contain viruses. They are just advertising themselves.
- mr.microsoft(Sun Certified Java Pragrammer)