Added javascript to the menu