add javascript for menu scrolling