Make weak references to JavaScript Objects. Fire a callback when they're garbage collected.