js script loading fix

s.src = '<?php echo $url_api ?>';