Add hash table in javascript to determine parenting style code from score