correct script loading