a javascript storage engine (cookies and web storage)