Let options arg specify cookie or localStorage in constructor
Fix a typo, use the correct argument name