Update texwrapper.js

Fix for long outputs (stdout/stderr).