fix mobile menu and gallery js error