main menu js fix for mobile