cleanup, localstorage update and .appcache