handle the return function of decorated function by crossdomain in a different way