linked index to script