title: Can I execute a Javascript function inside Spidermonkey and get the return value?
body: <p>I'm just getting into using Delphi with Spidermonkey.  Previously I would load a web page into a TWebBrowser component and interact with the Javascript code in the loaded web page.  This was messy because to return values back to delphi I had to load them into a DOM object via the Javascript code and then inspect the DOM from Delphi to find that object and access it's <em>value</em> property.</p>
  
  <p>With Spidermonkey, can I execute a specific Javascript function and get the return value easily and directly back into Delphi?  If so, please point me to a quick code example that would be helpful.  The 3 samples that came with Spidermonkey don't seem to get into this.</p>