simple javascript cache library