removed unused loadScript function