updated web.js
 Take input from index file
Updated web.js file