put the script in index