Comment importer un fichier javascript
<script type="text/javascript" src="path-to-javascript-file.js"></script>
Aggressive Antelope
<script type="text/javascript" src="path-to-javascript-file.js"></script>
// jQuery
$.getScript('/path/to/imported/script.js', function()
{
// script is now loaded and executed.
// put your dependent JS here.
});
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