Simple and expressive Javascript cache