updating to use jshashtable instead of hashtable