Simple localStorage abstraction