Update text.class.js

Fixes exporting of text simple group.
Thanks to @ChrisBuergi to make me notice