fix javascript to show menu