JQuery accordion works in admin but not for anonymous
jQuery UI is bundled with core in D7 ( see /misc/ui ).
To add jQuery Accordion JS you can just go:

e.g, in template.php

function THEMENAME_preprocess_html(&amp;$variables) {
  drupal_add_library('system', 'ui');
  drupal_add_library('system', 'ui.accordion');
}


After that, clear all caches and check the javascript files have been added in the HTML source of the page as anon.