Adding a methods in HashMap.js plus a few minor amends