Naive implementation of persistent hashtable in JavaScript. best case O(1), worst case O(n/2).