Loading correct script file