Fix the dropdown menu breaking every time another JS was run