Cordova In-App browser opening external scripts

//Actual webscript

<script type="text/javascript">
   var lhnAccountN = "310904-1";
   var lhnButtonN = 38;
   var lhnInviteEnabled = 1;
   var lhnWindowN = 0;
   var lhnDepartmentN = 36316;
   var lhnChatPosition = 'bottomright';
</script>

<a href="http://www.livehelpnow.net/products/live-chat-system" target="_blank" style="font-size:10px;" id="lhnHelp">best live chat</a>

<script src="//www.livehelpnow.net/lhn/widgets/chatbutton/lhnchatbutton-current.min.js" type="text/javascript" id="lhnscript"></script>

Im trying to open above script using in_app browser

$rootScope.testChat=function(){
    var options = {
         location: 'no',
         clearcache: 'yes',
         toolbar: 'yes'
     };

      var ref=window.open('http://www.livehelpnow.net/products/live-chat-system', '_blank', options);

        ref.addEventListener('loadstop', function() {
        ref.executeScript({
        code:"var lhnAccountN = '310904-1';var lhnButtonN = 38;var lhnInviteEnabled = 1;var lhnWindowN = 0;var lhnDepartmentN = 36316;var lhnChatPosition = 'bottomright';"
    })
    ref.executeScript({
        code:"var chat; chat.src='www.livehelpnow.net/lhn/widgets/chatbutton/lhnchatbutton-current.min.js' chat.id='lhnscript'"    }) }) } 
<ion-content>
`<a href="http://www.livehelpnow.net/products/live-chat-system" target="_blank" style="font-size:10px;"ng-click="testChat()" id="lhnHelp">best live chat</a>`
</ion-content>

//the external scripts are not loading and how to bind the id values to the script.

Do you have cordova-plugin-whitelist installed?
if not, install it using ionic plugin -g add cordova-plugin-whitelist

Otherwise latest cordova versions block http requests.