Additional JS fallback code for mirrors button and main menu