using hashmap.js library, related to #19