var queryDataFromContract = function() { var data = executeCurrentContract("query", "abc", function(arg) { $("#resultText")[0].innerHTML = arg.result; }); }