require localStorage plugin