update hashtable to js version, since hashtable still crash