fix index.html script