Modified web.js to read URLs