This probably wants to read something like:

    var $firstFooterLikeElement = $('.js-footer:eq(0)'),
        footer = ($firstFooterLikeElement.length) ? $firstFooterLikeElement : $('#footer');

That way if we introduce something else that looks footer-like above the current beta notice we can just add the `.js-footer` class and this will use the first element.