add javascript for menu expansion