I'm not sure why you are copying the code over instead of just making the changes directly on the page or just applying the template after making changes to the template.
You will also need this script though:
<script src="../SpryAssets/SpryAccordion.js" type="text/javascript"></script>
That should cause the accordion to work.