Remove section titles and comments from JSON output

The comment syntax is not proper JSON.
Clean up jquery output.
Fix unit tests.