Minor bug fix and more obviously correct code

I broke the changes into two commits for clarity.

The first commit (0351550) explicitly deals with correcting a problem where one of the page's headers was missing a "data-accordion" attribute which caused a JavaScript error on page load. I currently have this check in `testFunc`, but it may be better to perform this test in the `Accordion`'s initialization rather than in `textFunc`'s execution.

The second commit (866f831) contains a couple changes that (to my mind) make it a bit easy to grok at a glance and a bit more *obviously correct*. Specifically I broke long jQuery method chains into shorter, more explicit commands. To my eye it is now much more obvious what is happening on each line.