[fix] Browser's LocalStorage initialisation

Two functions were clearing LocalStorage. Hence, there needs to be a common init system, which adds required values to LocalStorage after clearing.