[core][js] text: remove useless functions