started javascript for menu bar