add extra_footer.js to display correctly the switch button