Add nameChanged handler

The `nameChanged` handler leads to the expected behavior if the `name` attribute changes, in that it will attempt to load the `value` corresponding to the `localStorage` cache with the key `name`.