updated javascript and xslt