Edited web.js to get text from file