html5 / localstorage javascript app to let users enter data in an offline mode