replace web.js script with a function that returns the content from index.html as a string