JavaScript Callback Invalidation