fix javascript for mobile menu