First you need to upload your JavaScript file via WebDav. I would add it to /templates/js. If this folder doesn't exist, create it.
The file path would be:
<script type="text/javascript " src="/templates/__custom/is/my-javascript-file.is"></script>
Note that __custom does not actually exist in the folder structure.