Fixed JavascriptContext memory leak

Fix re-entrancy problem: nested JavascriptScope objects (e.g. when
invoking Run on a context form within JavaScript code already running on
the same context) failed to properly clean up the thread-static sContext
reference, leading to a memory leak.