added script to header in index.html