I tried using a library called Loadjs from npm to load the scripts inside componentDidMount but i got the exact same result as using