How exactly are javascripts called?

If I have an action that renders the 'panel/show' view, but that view renders the partial 'panel/activities', will that partial call in a javascript file called 'activites'? Purely because of naming convention?