update web.js for respose index.html