The auto-loading of javascript that Kim mentioned is intended for auto-loading of javascript content that is needed on all pages.

If you're attempting to use javascript to display specific content on a specific spot on specific pages, you won't use that approach. Instead, you would simply insert the required javascript directly where you want it, whether in the appropriate template, or in a define-page, etc.

Since you haven't shown what you're after with a URL to demonstrate what you've tried or what's not working, there's nothing much more that can be done to offer assistance.