how to use external javascript file using link code example
Example 1: how to include external javascript in html
<script src="script.js">
Example 2: link external file by url using javascript
$('head').append('<link rel="stylesheet" type="text/css" href="{url}">')