jQuery plugin: do something when click outside of an element, like closing a popup/login/panel