An LRU cache JavaScript implementation.