moved refrence to script in index