Hashtable Implementation exercise for CD done in js