JavaScript Programming Question for FamilySearch