JavaScript Sorted Multimap Object