Added support a localhost for index.html demo