Adjust height of API index in sidebar according to window height

Updating height of scrollable sidebar div with JavaScript. Fixes issue chaijs/chai#310.