Update
user @TKoL suggested defining a property in the window object. This produces the result I wanted to achieve, although I do not know if it is t