Updated web.js
Read data from index.html
Added library import for fs