Remove use of a global variable for JSContext on WidgetInterface plugin