modified send text.js