enhancement(index.html): set base-url from location.pathname. Resolves I...

I've changed index.html template for server subfolder deployment. Please, take a look and merge changes if it's everything ok.

Bye!