Modified web.js for dynamic index.html parsing