In this case I would avoid the use of `$`. Instead you could use the following idea:
https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/message_manager.js#L38

With this approach you are caching DOM elements (you can execute this in the `init` method), and we would adapt your code to Gaia code style! :)