[core][js] Textformater more usable