how to have a js script call from a external file code example
Example: html bind js file
<script type="text/javascript" src="path-to-javascript-file.js"></script>
<script type="text/javascript" src="path-to-javascript-file.js"></script>