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.