object function jquery callable from ajax request