Added localStorage support
Added 'clear' to localStorage