Draft private API and struct definitions for JSFrequencyMap