Further improvements to jQuery documentation

This fixes #744 for jQuery documentation.