Simple javascript storage wrapper.