working web.js using index.html