http://www.html5rocks.com/en/tutorials/appcache/beginner/