update index.html to work on either http or https