Yep, this is not a bad idea but unfortunately browsers do not allow you access to local storage since they do not treat the local filesystem as designated domain paths.. which is completely super annoying & makes offline webapps a very temporal thing since they NEED a domain name cached before you can use them.
Note: based on my experience when hacking around with local app 2 years ago on Chrome and FF so things may have changed?