Yeah, "$.wiki('whatever');" sends the output nowhere.
If you want the output to appear somewhere as the passage is initially rendered, then you'd want to do something like this:
<span id="test"></span>
<<script>>
$(document).one(":passagerender", function (ev) {
State.temporary.someObject = someObject;
$(ev.content).find("#test").wiki('<<macro _someObject>>');
});
<</script>>
However, if you're trying to display it after the passage as already rendered (for example, when the user clicks a button), then you could do something like this:
<span id="test"></span>
<<button "Click me">><<script>>
State.temporary.someObject = someObject;
$("#test").wiki('<<macro _someObject>>');
<</script>><</button>>
Have fun! :-)