using readFileSync to return index.html