Altered function to work

This should now correctly send the contents of index.html