access to all popups via Foo.Popup.popups
added test for closing the popup when clicking on the overlay
added some comments