I agree that mappings becomes outdated easily. On the calendar app we added getters/setters for most of the code that needs DOM interaction, like: https://github.com/mozilla-b2g/gaia/pull/17267/files#diff-4c62f00a88dbff3762b72f307ad87aaeR54 - and killed the mappings and selector variables as well.