This post explains how to reorder Magento javascript using layout XML. If you want to force the load order of Javascript included with the addJs method, the easiest way is to supply a name using the <params>. You can use the <params> element, with name attribute in it . Magento will load the Javascript files in alphabetical order based on the name supplied.