simplified _text.js