[core][js] Textformater add functions