Updated server code to apply index.html changes on-the-fly