Update text.class.js

experimental fix.