結果 : get all parent nodes javascript