It doesn't really have one. Annoying, because it's 90% of the way there- views can insert code into specific "sections" of the template, but sub-views can't.
If they just enabled that then you could make a "JS" section just before </body> and have all your JS inserted there.