An easy way to emulate a blur event for DOM elements like divs and modals