Enqueue js/accordion.js to be in the footer (thus after the jQuery's Accordion UI script).