Use ES6 Map class.