Fixed script loading