Hashtable data structure with Jasmine unit test