Update text.class.js

Fixes exporting of text simple group.
Thanks to Chris Buergi to make me notice