Only use localStorage if `persist` is truthy

Aids debugging when in iOS private browsing mode and catching
exceptions, and fasterer.
Merge pull request #4 from rowanbeentje/master

Only use localStorage if `persist` is truthy