how to code in js within a html file code example
Example: how to reference a javascript file in html
<script type="text/javascript" src="path/filename.js"></script>
<script type="text/javascript" src="path/filename.js"></script>