A script to handle classes on a menu to manage a responsive display