Use JavaScript instead of CSS for dropdown hover