adds prototype to index.html