Fix JSGlobalContextRef method