JS events for entering and leaving desktop/mobile mode.