HTML Bind JS Arquivo
<script type="text/javascript" src="path-to-javascript-file.js"></script>
Aggressive Antelope
<script type="text/javascript" src="path-to-javascript-file.js"></script>
var jsFile = document.createElement("script");
jsFile.src = "homePage.js"; // it can be path also "{themes('/scripts/homePage.js')}"
document.body.appendChild(jsFile); //append it as src to body