fixing global installation error
Fixed recursive iteration for loadScript method
Fixed recursive iteration for loadScript method