Refactored hashTables.js