Fix cross-browser bugs with focus/blur, add new notifycation... tested, but may be unstable (not remove debug output)