make sure that pointers use the same JSValueRef for JS equality to work