I'm **absolutely** not fan of this implementation. I use Dependency Injection pattern here by giving the storage object to Garlic constructor, to be totally storage agnostic and independent. That is not anymore the case here with a strong cookieStorage dependency.

You'll need to do this check around here: https://github.com/laviavigdor/Garlic.js/blob/bd731afe2bcd594f26f8837a4839faeb6b0a49da/garlic.js#L403 and give Garlic its storage manager.