Add serialization for if-else JavaScript statements