modified index.js to read index.html