js to redirect menu item for mobile