added script to index file