JS: Convert navigation to select dropdown on mobile