[core][js] Fix textformater