update script of index.html