The javascript file is there in Public/Scripts/filename.js. I have a template file in template/form.tmpl.html. Root folder contains Public and template folders
I wo
You can load all your scripts in the head
tag, and whatever your script is doing in function braces. But make sure you change the scope of the variables if you are using those variables outside the script.
Adding dynamic script to head You can write function and add an script element with src of js file path