docs(js): use proper title markup

The previous markup matched other heading levels within the
document itself, so sphinx was getting confused and putting
the sub-headings into the top-level table of contents.
Merge pull request #6720 from ewinslow/docs-js

docs(js): use proper title markup