Subject: How about passing the data via a computed field or edit box control
You could use the getComponent(“xxx”).getValue() or setValue to get via SSJS and then use client-side JS to read/write from the control. Set the html attributes to hidden to hide it?