How to add a custom or third JS file via layout block for Magento
You can use “action” element with “method” attribute from your Magento template XML file or backend – Page Layout (CMS) / Custom Design (Category)/ Custom Layout Update (Product) to append a custom or third JS file for your Magento
<reference name="blockname"> <action method="addItem"> <type>skin_js</type> <name>js/file.js</name> <params /> </action> </reference>