Dropdown arrow fix in JS