JS: Fixes to address local storage updates on record edit events