var widget_redirect_url = ''; function init_load_widget(){ (function() { var basepath = 'https://leader.afteru.co.il/loan3/'; // Load the script var script = document.createElement("SCRIPT"); script.src = basepath + 'js/jquery-3.3.1.min.js'; script.type = 'text/javascript'; script.onload = function() { var basepath = 'https://leader.afteru.co.il/loan3/'; jQuery.get( 'https://leader.afteru.co.il/loan3/widget.php?siteUrl=money-widget.tapuz.co.il' , function( data ){ jQuery('.loans-widget').html( data ); } ); }; document.getElementsByTagName("head")[0].appendChild(script); })(); } init_load_widget();