nit: please add a local var for the classList now that we use it at different locations. Please use the exact same lines than what we have at https://github.com/mozilla-b2g/gaia/pull/17531/files#diff-74841e428dea67f7357f1893a4d26155L2001 so that we don't have conflicts later