In a custom JavaScript logic element, I define a simple object and output it. Then I set an App Variable to the output of the JavaScript node.

When I do this, nothing ends up being stored anywhere, so attempting to access the variable returns nothing.
So I guess my question is, how can I create an object with JavaScript and store it in a variable?