Rule transliteration javascript updated