[core][js] Textformater fix syntax change