added javascript and a menu item