Modified web.js to turn text into a string without using a buffer