JS docs: add Options, Methods, Events subsections to nav sidebar

It is extremely common to want to look up the options or methods or events of one of the JS plugins.
Giving these subsections entries in the navs makes them easier to navigate to and easier to link to.