JavaScriptEngine is thread-safe and meant to be an app-wide singleton.