Wrap whole switchInteraction() function in feature detection to ensure alert message is shown if browser is unsupported. Ensure switchInteraction() properly exits.