Added comment indicating that root should be changed to the current location of index.html since it doesn't have to run in a web server.
Changed root configuration to location.pathname so that there's no updating required.