You would have to handle returning the renderer as a string and then eval (ore create a Function with the string) it on the client to make it into a function