Updated web.js
Added index.html
Read data from index.html
Use readFileSync() instead of readFile()