serialized data, need to make consistent across js and ruby