That's actually not the issue. Adding, removing, or modifying the *properties* of a #javascript object is fine for `const` variables—their not immutable, they just can't be reassigned. (Which took me a bit to remember/understand)
(Just to be sure, though, I tested with that changed and it made no difference. Thanks for the thought!)