Auto adding layers to index.html