html5 app using local storage for persistence