menu working via javascript