update ref to script in index