Simple, efficient Javascript cache with regions