I did add that script but it didn't seem to do the job. What I'm trying to do is put the according panel on the home page instead of most of the stuff you have there now. The home page has a cms content section which I deleted so I could add the categories list. I haven't been able to get the categories list accordion panel to work yet but I guess I just haven't copied over the the right stuff.
I'm not sure what you mean by adding it directly to the page.