Using LocalStorage event listener to sync changes