moved script to index.html