fix for iOS SDK 8.0 and OS X SDK 10.10; JSContextGetGlobalObject now returns a proxy to the object