jQuery plugin to detect when all focus has left a component