Address TOC dropdown not closing on click away

Addresses issue #28