fix pattern and text variables in the trace.
fix pattern and text variables in the trace.

they have to be "added" manually so the visualization code treats it as
if it's defined in the input code.

heyLu/tracing-js,heyLu/tracing-js