you're going to love the `SettingsListener` helper :)

https://github.com/mozilla-b2g/gaia/blob/master/shared/js/settings_listener.js