Bidirectional hashmap for javascript to browse a standard hashmap through keys or values