Java scripts are not necessary always harmful. If they are written purposely to harm s/w, then it is called virus, otherwise not. Many freely available javascripts are available, you can freely use them onto your website, I think.