One of the neatest features in HTML 5 is localStorage.
It lets an app store as much as 5MB of data on the local machine.
I wanted to understand how it works so I wrote a demo.
View source if you want to see how it works.
Hope you find it useful. 🙂