use html5 localstorage with node stream api