change injectJs to loadScript to be more reliable