fix the mathquill2text function

this.textTemplate isn't defined in the function, because "this" isn't defined in this context. Therefore you have to use a proxyfunction.