Thread Safe Embedding
nCompile with -DJS_THREADSAFE
nJSContext:Thread is a many:1 mapping
n JS_SetContextThread(cx);
nBefore entering JS
n JS_BeginRequest(cx);
nWhen leaving JS
n JS_EndRequest(cx);