[V8] add contextForWorld helper function to ScriptController