Implemented datastore with localstorage