Updated web.js
Read from index.html
Updated to read file sync not async way