I'm trying to pass a variable from the browser into a KM variable. I've looked at the wiki post to execute JavaScript, but I can't get it to pass the data back to KM.
In the above javascript snippet the browser's console shows that I found the right content. But when I uncomment the return statement Chrome throws an error: Uncaught SyntaxError: Illegal return statement. The text in the window just shows "", indicating that it didn't work.