title: Is there a local runtime environment for running Javascript? (like Windows Scripting Host for JScript)
body: <p>I wonder if there is a 'local runtime environment' for hosting Javascript code, that's not browser based, for running small local apps? Something like WSH (Windows Scripting Host) for JavaScript (not MS-JScript).</p>
  
  <p>I would like to run some javascript scripts locally, like I might for VBScript (VBS), with the possibility of some of the following:</p>
  
  <ol>
  <li>Access to local files (perhaps via an FSO object)</li>
  <li>Simple console read/write</li>
  <li>Recent version of Javascript</li>
  <li>Some form of simple debug</li>
  </ol>
  
  <p>Alternatively, how might one consider running a browser in 'local' mode only? ie: launch, run-code, exit, perhaps with command-line switches/options, without too much overhead? If so, which browser? FireFox? Might it be possible to somehow 'extract' the JS runtime engine/DLL and call that?</p>
  
  <p>So, in brief, something like WSH just for javascript?</p>
  
  <p>Thanks.</p>