partial clean-up of _text.js