save json with data locally and load from js