adds script to index.html