updated to reflect proper check of private browsing (in background, not foreground page)
just a formatting fix
proper (hacked) history support for safari