Corrected script loading