Pritaeas's solution is probably the simplest.
Another option is to use the browser's offline local storage. To see what I mean, check out http://www.jstorage.info/
However, to make it "easy to use" as you say, you would have to use a framework (use the website's jStorage library), otherwise you'd have to write it from scratch and worry about browser compatibility.