Updated web.js
add index file
fix errors