Removed use of ecmascript 6 Map. Using hash map instead.