Tracked values example

This example demonstrates emscripten:run_script_tracked/1 and emscripten:get_tracked/2, which let Erlang hold handles to JavaScript values that cannot be serialized, such as the DOM node below.

The JavaScript value stays alive exactly as long as the Erlang handle does: when the handle is garbage collected, AtomVM drops the value from Module.trackedObjectsMap.

A box, tracked from Erlang