Added Json Expr on functions.

If the passed jquery attribute is a function it will now be properly escaped.