Added js logout (only supported in Firefox).