This section is incomplete. Please add to it by posting a comment or editing this page.
Adding JS as a separate, external file
This method is often used to load .js files by adding that PHP snippet to the end of template.php in your site's theme directory.
In FireFox, use Tools > Error Console. Clear the error console and then look at it when you load the page. For example, it will let you know if an external .js file didn't load because you got the path wrong. Note: some errors can be safely ignored.