Getting my ass kicked by html5's notifications api. But now I think I got it ...