JShint doesn't like functions inside loops
Add tests for toggleable headings. updates #83