update javascript for pedigree