updated index.js to read the index.html file