Updated web.js to properly update index.html when changes are made.