The script reference can be in either page. it should be on the page that the script is used.
in other words, the plugin page should be a complete individual page, if there is code on the plugin page that uses the script, then the script tag should be on that page.