safari, ff localStorage fix