I use execute javascript to execute some code, and execJS for when I need a return value; i.e;
On start of layout execute Javascript :
"
var div = document.createElement('div');
div.id = 'my_div';
div.innerHTML = 'some_val';
document.body.appendChild(div);
"
On touched text
Set text to browser.ExecJS("my_div.innerHTML")