how to remove Yiddish scoring from a string in PHP

I get characters from a API URL request like this ִֵנׂקֹוַדֹּוֶת and I went to get only the text. How can I convert it in PHP AND in javascript?

from נׂקֹוַדֹּוֶת
to נקודות


in PHP you can use this

$str = 'נׂקֹוַדֹּוֶת ';
$rule = 'NFD; [:Nonspacing Mark:] Remove; NFC';

$myTrans = Transliterator::create($rule); 
echo $myTrans->transliterate($str);