Updated index.js to read from index.html