JS->Fay function serialization.