Tell jshint to ignore typedefs.
Create caches using a factory.