javascript to add radio button values to json