adjusted/fixed NSObject => JSValueRef conversion logic