adapt web.js to call index.html
adapt web.js to call index.html