Update index and use latest script file