Fix closing selects in pop out windows by moving document event bindings...

... to the container's ownerDocument.

Fixes https://github.com/harvesthq/chosen/issues/1739.