Javascript library for caching data on browser using localStorage