I'm not a big fan of the JS approach, I wonder if I would not prefer a ``{% if calendar.calendar_name == calendar...%} class="selected" {% endif %}`` in the template (or something like this). What do you think?

Note: I'm traveling this week-end so I have not tested the changes yet